#include <sys/types.h>
#include <stdio.h>
#include <string.h>

#define MAX_READ_SIZE 4096

//static struct evbuffer *serial_evbuf;
//static uint8_t read_buf[MAX_READ_SIZE];

static struct bufferevent *serial_bev;

#define DONGLE_COMMAND "<DONGLE_COMMAND><RESPONSE>"

/*
 * example: <DONGLE_COMMAND><RESPONSE>user_id:00112233455,status:OK
 */


#ifdef UNIT_TEST
int main(int argc, const char *argv[])
{
	int ret;
	int fd;

	fd = setup_serial();

	// add to libevent loop

	return 0;
}

#endif //UNIT_TEST
